<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('/shop','ShopController');
    $router->resource('/delivery','SfDeliveryController');
    $router->get('shopType',[\App\Admin\Controllers\ShopController::class,'shopType']);
    $router->get('storeInfo',[\App\Admin\Controllers\ShopController::class,'storeInfo']);
    $router->resource('/coupon','SfShopCouponController');
    $router->resource('order','SfOrderController');
    $router->resource('detection','DetectionController');
    $router->resource('remark','SfRemarkController');
    $router->resource('shopType','ShopTypeController');
    $router->resource('BranchCourt','BranchCourtController');
    $router->get('hospital',[\App\Admin\Controllers\DynamicController::class,'hospital']);
    $router->resource('dynamic','DynamicController');
    $router->get('detectionOrder',[\App\Admin\Controllers\DetectionController::class,'userInfo']);
    $router->get('orderId',[\App\Admin\Controllers\DetectionController::class,'orderId']);
    $router->get('shopType',[\App\Admin\Controllers\SfOrderController::class,'shopType']);//查询商品分类
    $router->get('shopInfo',[\App\Admin\Controllers\SfOrderController::class,'shopInfo']);//查询商品id
});
